package com.hyh.spring.service;

import com.hyh.spring.common.Result;
import com.hyh.spring.model.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @BelongsPackage: com.hyh.spring.service
 * @ClassName PaymentService
 * @Author: hyhWTX
 * @CreateTime: 2023-06-03  19:32
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@FeignClient(value = "nacos-payment-provider",fallback = PaymentFallbackService.class)
public interface PaymentService
{
    @GetMapping(value = "/paymentSQL/{id}")
    public Result<Payment> paymentSQL(@PathVariable("id") Long id);
}
